package module

import (
	"net/http"
)

type (
	Fuzzy struct {
		EveryPage int
		PageNumber int
		Name string
	}
	Page struct {
		EveryPage int
		PageNumber int
	}

	ConPage struct {
		Amount int
		CD []ConDescription
	}
	SvcPage struct {
		Amount int
		SD []SvcDescription
	}
	ConDescription struct {
		Name string
		Image string
		ImageName string
		ImgVersion string
		UsedCount int
		AllCount int
		Status string
		Time string
	}
	Con interface {
		ConFindAll() []*ConDescription
		ConFind(id string) *ConDescription
		ConDel(name string)error
		ConCreate(r *http.Request)error
	}
	SvcDescription struct {
		Name string
		Svc string
		Status string
		Clusterip string
		Port string
		Time string
	}
	Svc interface {
		SvcFindAll() []SvcDescription
		SvcFind(name string) SvcDescription
		SvcDel(name string) error
		SvcCreate(r *http.Request)error
	}
)
